﻿using Jayrock.Json;
using open_api_sdk_csharp.com.chinaums.open.api;
using open_api_sdk_csharp.request;
using open_api_sdk_csharp.response;
using System;

namespace open_api_sdk_csharp
{
    class TokenTestCase
    {
        static void Main(string[] args)
        {
            //test
            //string url = "https://api-mop.chinaums.com";
            //string appId = "";
            //string appKey = "";
           // TokenRequest tokenRequest = new TokenRequest(appId, appKey);
            //OpenApiclient<TokenResponse> openApiClient = new DefaultOpenApiClient<TokenResponse>(url, appId, appKey);
            //TokenResponse token = openApiClient.execute(tokenRequest);
            //if (token != null) Console.WriteLine(token.accessToken);
            //Console.ReadLine();
            //string appId = "appid";
            //string appKey = "appkey";
            /**
           YsBankCardTagRequest request = new YsBankCardTagRequest();
           JsonObject json = new JsonObject();
           json.Put("phoneNo", "");
           json.Put("priAcctNo", "");
           request.data = json;
           OpenApiclient<YsBankCardTagResponse> openApiClient = new DefaultOpenApiClient<YsBankCardTagResponse>(url, appId, appKey);
           YsBankCardTagResponse response = openApiClient.execute(request) ;
           if (response != null) Console.WriteLine(response.data);
           Console.ReadLine();**/
        }
    }
}
